package jp.co.cos.ittrick.channel.controller.admin.article;

import java.util.List;

import jp.co.cos.ittrick.channel.model.ArticleModel;
import jp.co.cos.ittrick.channel.service.ArticleService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

/**
 * カテゴリ・Class リスト
 * @author takahara
 *
 */
public class IndexController extends Controller {

    private ArticleService articleService;

    public IndexController() {
        articleService = new ArticleService();
    }

    @Override
    public Navigation run() throws Exception {

        List<ArticleModel> articleModelList = articleService.getAll();
        requestScope("articleModelList", articleModelList);

        return forward("index.jsp");
    }
}
